import java.util.Scanner;


public class ArrayExercise02{

	public static void main(String[] args){

		int arr[] = { 4, 45, -23, 3, 78, 0};
		int max = arr[0];
		int maxIndex = 0;
		for(int i=0; i<arr.length; i++){
			if(max < arr[i]){
				max = arr[i];
				maxIndex = i;
			}
		}
		System.out.println("The max = " + max + '\t' + "The maxIndex = " + maxIndex);
	}
}